<template>
  <div class="Ranking">
    <div class="container">
      <div class="head">
        <div class="pro_title">
          <div><img src="../assets/image/head.png" alt="" /></div>
          <div class="con_text">
            <div class="text">
              <p class="name">张小萌</p>
              <p class="address">白云区分公司-服务部</p>
            </div>
            <div class="score">85<span>分</span></div>
          </div>
        </div>
        <div class="ranking">我的排名<span>第十名</span></div>
      </div>
      <div class="content">
        <div class="title"><img src="../assets/image/ran_le.png" alt="" />排行榜</div>
        <ul>
          <li v-for="(item, index) in Listpan" :key="index">
            <div class="nums"><img :src="item.img" alt="" />{{ item.num }}</div>
            <div class="text">
              <img :src="item.proimg" alt="" />
              <div class="con_te">
                <p class="name">{{ item.name }}</p>
                <p class="addres">{{ item.addres }}</p>
              </div>
              <div class="score">{{ item.score }}<span>分</span></div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      Listpan: [
        {
          img: require("../assets/image/one_icon.png"),
          proimg: require("../assets/image/pro_head.png"),
          name: "李娜",
          addres: "海珠分公司-服务部",
          score: 95,
        },
        {
          img: require("../assets/image/two_icon.png"),
          proimg: require("../assets/image/pro_head.png"),
          name: "李娜",
          addres: "海珠分公司-服务部",
          score: 92,
        },
        {
          img: require("../assets/image/three.png"),
          proimg: require("../assets/image/pro_head.png"),
          name: "李娜",
          addres: "海珠分公司-服务部",
          score: 90,
        },
        {
          num: "04",
          proimg: require("../assets/image/pro_head.png"),
          name: "李娜",
          addres: "海珠分公司-服务部",
          score: 88,
        },
        {
          num: "05",
          proimg: require("../assets/image/pro_head.png"),
          name: "李娜",
          addres: "海珠分公司-服务部",
          score: 86,
        },
      ],
    };
  },
};
</script>
<style lang="scss" scoped>
.Ranking {
  .container {
    margin: 2.5625rem 0.875rem;
    .head {
      background-color: #fff;
      border-radius: 0.3125rem;
      padding: 1.0625rem 1rem 0.6875rem 1.0625rem;
      margin-bottom: 0.5rem;
      .pro_title {
        display: flex;
        align-items: center;
        border-bottom: 2px dashed #e4e4e4;
        padding-bottom: 0.90625rem;
        .con_text {
          display: flex;
          justify-content: space-between;
          width: 76%;
          align-items: center;
          .text {
            color: #888888;
            font-size: 0.875rem;
            padding: 0rem 0rem 0rem 0.75rem;
            .name {
              font-weight: 600;
              font-size: 1.25rem;
              color: #333;
            }
          }
        }

        .score {
          font-size: 1.5rem;
          color: #d42454;
          span {
            font-size: 1rem;
          }
        }
      }
      .ranking {
        display: flex;
        justify-content: space-between;
        padding-top: 0.59375rem;
        font-size: 1.125rem;
        color: #d42454;
      }
    }
    .content {
      width: 100%;
      background-image: url("../assets/image/ran_bg.png");
      background-position: center;
      background-size: cover;
      height: 30.9375rem;
      padding: 0.9375rem 1rem 0.8125rem 0.9375rem;
      .title {
        font-size: 1.3125rem;
        color: #d42454;
        font-weight: 600;
        border-bottom: 2px dashed #e4e4e4;
        padding-bottom: 0.59375rem;
        img {
          vertical-align: middle;
          margin: 0rem 0.5625rem;
        }
      }
      ul {
        padding-top: 0.53125rem;
        width: 100%;
        li {
          display: flex;
          align-items: center;
          margin-bottom: 1.5rem;
          .nums {
            width: 2.375rem;
            height: 2.375rem;
            text-align: center;
            line-height: 2.375rem;
            font-size: 1.125rem;
            font-weight: 600;
            color: #333;
          }
          .text {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 86%;
            .con_te {
              width: 55%;
              .name {
                color: #333;
                font-size: 1.125rem;
                margin-bottom: 0.3125rem;
              }
              .addres {
                font-size: 0.75rem;
                color: #999999;
              }
            }
            img {
              padding: 0rem 0rem 0rem 0.375rem;
            }
            .score {
              font-size: 1.25rem;
              color: #d42454;
              span {
                font-size: 0.875rem;
              }
            }
          }
        }
      }
    }
  }
}
</style>
